package com.lhhu.demo.mapper;

import com.lhhu.demo.bean.BookMessage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther 虎
 * @Data 2021/3/6 11:29
 * @Version 1.0
 */
@Repository
public interface BooksMapper {
    List<BookMessage> getAllBookMessage();
    int addOneBookMessage(BookMessage bookMessage);
    int deleteOneBookMessage(String bookId);
    int updateOneBookMessage(BookMessage bookMessage);
    List<BookMessage> getOneBookMessageById(String bookId);
    List<BookMessage> getAllBookMessageByISBN(String bookISBN);
    List<BookMessage> getAllBookMessageByName(String bookName);
    List<BookMessage> getAllBookMessageByCategoryId(String bookCategoryId);
    List<BookMessage> getAllBookMessageByCategory(String bookCategory);
    List<BookMessage> getAllBookMessageByTag(String bookTag);
}
